package edu.sctu.zcy.month201505.day20150524;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by user24 on 2015/5/24.
 */
public class Student {


        /*
        创建另一个类老师所教学生Student，该类有学号，姓名，成绩，年龄，性别，住址。
         */
        private int studentID;
        private String name;
        private int score;
        private int age;
        private String sex;
        private String address;

  public Student(){

  }


    public Student(int studentID,String name,int score,int age,String sex,String address){
        this.studentID = studentID;
        this.name = name;
        this.score = score;
        this.age = age;
        this.sex = sex;
        this.address = address;
    }

    Map map = new HashMap<>();

    public Map setCourse(){

        TextCourse tc = new TextCourse();

        map.put("张三",tc.setCourse().get((int) (Math.random()*6)));
        map.put("李四",tc.setCourse().get((int) (Math.random()*6)));
        map.put("王五",tc.setCourse().get((int) (Math.random()*6)));
        map.put("周四",tc.setCourse().get((int) (Math.random()*6)));

        return map;
    }


        public int getStudentID() {
            return studentID;
        }

        public String getName() {
            return name;
        }

        public int getScore() {
            return score;
        }

        public int getAge() {
            return age;
        }

        public String getSex() {
            return sex;
        }

        public String getAddress() {
            return address;
        }




}
